package com.hpxx.ylzswl.linster;

import android.view.View;
import android.widget.AdapterView;

import com.hpxx.ylzswl.callback.ItemCallBack;


/**
 * 迈虹信息科技.All rights reserved
 *
 * @author LuoXiang
 * @ClassName ${ClassName}
 * @TitleName ${ClassName}
 * @Data 2017/7/4
 */
public class ItemLinster implements AdapterView.OnItemClickListener {

    private ItemCallBack callback;
    private int pos;
    public ItemLinster(ItemCallBack callback){
        this.callback = callback;
    }

    public ItemLinster(ItemCallBack callback, int pos){
        this.callback = callback;
        this.pos = pos;
    }

    @Override
    public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
        callback.itemLinster(pos,i);
    }
}
